﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonSearchModule
{
    /// <summary>
    /// 索引关键字与字段对应结构体
    /// </summary>
    public struct SearchConfig
    {
        /// <summary>
        /// 搜索关键字所影响的字段列表
        /// </summary>
        public static readonly string[] KeywordFields = new string[] {
            FieldKeys.PrimaryKey,
            FieldKeys.ID,
            FieldKeys.Name,
            FieldKeys.Info,
            FieldKeys.CategoryName,
            FieldKeys.PropertyName
        };

        /// <summary>
        /// 搜索分类所影响的字段列表
        /// </summary>
        public static readonly string[] CategoryNameFields = new string[] {
             FieldKeys.CategoryName,
         };

        /// <summary>
        /// 搜索属性所影响的字段列表
        /// </summary>
        public static readonly string[] PropertyNameFields = new string[] {
             FieldKeys.PropertyName,
         };
    }
}